package com.luck.emp.entity;

import java.util.Date;

import com.luck.org.entity.VDepartment;
import com.luck.org.entity.VUser;
import com.luck.pf.util.DateUtil;
import com.luck.pf.util.FormateUtil;

/**
 * 说明:ENEITY类
 * Copyright: Copyright (c) 2011
 * 深圳**科技
 * @author 
 * 
 */
public class EmpTWarehouse implements java.io.Serializable {
	private static final long serialVersionUID = 5490132440573100466L;
		/**
		 * pk
		 * 仓库编码：6位机构号 + 2位机构内编码
		 **/
		String whCode;
		/**
		 * 仓库模式（1:简单仓，2:综合仓）
		 **/
		String whMode;
		String isDefault;//是否默认仓1,是,0否
		/**
		 * 仓库名称
		 **/
		String whName;
		/**
		 * 管理机构ID
		 **/
		Long deptId;
		private VDepartment dept;
		/**
		 * 地址
		 **/
		String addr;
		/**
		 * 联系人
		 **/
		String contact;
		/**
		 * 电话
		 **/
		String phone;
		/**
		 * 传真
		 **/
		String fax;
		/**
		 * 备注
		 **/
		String memo;
		/**
		 * 创建人
		 **/
		private VUser createUser;
		/**
		 * 创建日期
		 **/
		Date createDate;
		/**
		 * 修改人
		 **/
		private VUser modiUser;
		/**
		 * 修改日期
		 **/
		Date modiDate;
		/**
		 * 状态：1－可用；2－禁用；
		 **/
		String status;
		/**
		 * 仓库面积
		 **/
		Double area;
		/**
		 * 仓库容量
		 **/
		Double dime;
		/**
		 * 仓库结构：1－平面，2－立体，3－其他
		 **/
		String struct;
	
	public EmpTWarehouse(){
	}
	
		public String getWhCode(){
			return this.whCode;
		}		
		public void setWhCode(String whCode){
			this.whCode = whCode;
		}
		public String getWhMode(){
			return this.whMode;
		}		
		public void setWhMode(String whMode){
			this.whMode = whMode;
		}
		public String getWhName(){
			return this.whName;
		}		
		public void setWhName(String whName){
			this.whName = whName;
		}
		public Long getDeptId(){
			return this.deptId;
		}		
		public void setDeptId(Long deptId){
			this.deptId = deptId;
		}
		public String getAddr(){
			return this.addr;
		}		
		public void setAddr(String addr){
			this.addr = addr;
		}
		public String getContact(){
			return this.contact;
		}		
		public void setContact(String contact){
			this.contact = contact;
		}
		public String getPhone(){
			return this.phone;
		}		
		public void setPhone(String phone){
			this.phone = phone;
		}
		public String getFax(){
			return this.fax;
		}		
		public void setFax(String fax){
			this.fax = fax;
		}
		public String getMemo(){
			return this.memo;
		}		
		public void setMemo(String memo){
			this.memo = memo;
		}

		public Date getCreateDate(){
			return this.createDate;
		}		
		public void setCreateDate(Date createDate){
			this.createDate = createDate;
		}

		public Date getModiDate(){
			return this.modiDate;
		}		
		public void setModiDate(Date modiDate){
			this.modiDate = modiDate;
		}
		public String getStatus(){
			return this.status;
		}		
		public void setStatus(String status){
			this.status = status;
		}
		public Double getArea(){
			return this.area;
		}		
		public void setArea(Double area){
			this.area = area;
		}
		public Double getDime(){
			return this.dime;
		}		
		public void setDime(Double dime){
			this.dime = dime;
		}
		public String getStruct(){
			return this.struct;
		}		
		public void setStruct(String struct){
			this.struct = struct;
		}
	
		public VDepartment getDept() {
			return dept;
		}

		public void setDept(VDepartment dept) {
			this.dept = dept;
		}

		public VUser getCreateUser() {
			return createUser;
		}

		public void setCreateUser(VUser createUser) {
			this.createUser = createUser;
		}

		public VUser getModiUser() {
			return modiUser;
		}

		public void setModiUser(VUser modiUser) {
			this.modiUser = modiUser;
		}

		public String getCreateDateStr(){
			return DateUtil.dateToString(this.createDate,DateUtil.patternA);
		}
		public String getModiDateStr(){
			return DateUtil.dateToString(this.modiDate,DateUtil.patternA);
		}
		public String getAreaStr(){
			return FormateUtil.getInstance().formateDouble(this.area);
		}
		public String getDimeStr(){
			return FormateUtil.getInstance().formateDouble(this.dime);
		}

		public String getStatusStr(){
			if(this.status.equals("1"))
				return "启用";
			else
				return "停用";
		}
		public String getWhModeStr(){
			return FormateUtil.getInstance().getNameByCode("p_wh_mode", this.whMode);
		}

		public String getIsDefault() {
			return isDefault;
		}

		public void setIsDefault(String isDefault) {
			this.isDefault = isDefault;
		}

		public String getIsDefaultStr(){
			if(this.isDefault.equals("1"))
				return "是";
			else
				return "否";
		}
		
}